package com.dt.dubai.mber.service;

import com.dt.dubai.mber.entity.MberCustomerInfoEntity;
import com.dt.dubai.mber.service.innate.MberCustomerInfoSerInnateAbsImp;
import com.dt.dubai.mber.service.ser.MberCustomerInfoService;
import org.springframework.stereotype.Service;

@Service
public class MberCustomerInfoServiceImp extends MberCustomerInfoSerInnateAbsImp implements MberCustomerInfoService {

    /*innateServiceStart*/
    @Override
    protected void userSavEntity(MberCustomerInfoEntity inEntity) {

    }

    @Override
    protected void userModEntity(MberCustomerInfoEntity inEntity, MberCustomerInfoEntity upEntity) {
        upEntity.setRealName(inEntity.getRealName()); // 真实姓名
        upEntity.setIdentityCardType(inEntity.getIdentityCardType()); // 证件类型
        upEntity.setIdentityCardNo(inEntity.getIdentityCardNo()); // 证件号码
        upEntity.setMobile(inEntity.getMobile()); // 手机号
        upEntity.setEmail(inEntity.getEmail()); // 邮箱
        upEntity.setSex(inEntity.getSex()); // 性别
        upEntity.setPoint(inEntity.getPoint()); // 积分
        upEntity.setBirthday(inEntity.getBirthday()); // 会员生日
        upEntity.setLevel(inEntity.getLevel()); // 会员级别
        upEntity.setAccountRecordId(inEntity.getAccountRecordId()); // 用户账户id

    }
    /*innateServiceEnd*/
    /*以上内容请误删除或是移动，系统升级使用，static系统升级覆盖用户修改，用户代码请写入下方*/
}
